#include "spring.h"

Spring::Spring(Vector3D _posBegin, Vector3D _posEnd, double _k, Color _c){
	this->posBegin = _posBegin;
	this->posEnd = _posEnd;
	this->k = _k;
	this->color = _c;
}

Spring::~Spring(){
}

Color Spring::getColor(){
	return this->color;
}

void Spring::setColor(Color _c){
	this->color = _c;
}

Vector3D Spring::getPosBegin(){
	return this->posBegin;
}

void Spring::setPosBegin(Vector3D _p){
	this->posBegin = _p;
}

Vector3D Spring::getPosEnd(){
	return this->posEnd;
}

void Spring::setPosEnd(Vector3D _p){
	this->posEnd = _p;
}

Vector3D Spring::getXBegin(){
	return this->xBegin;
}

void Spring::setXBegin(Vector3D _x){
	this->xBegin = _x;
}

Vector3D Spring::getXEnd(){
	return this->xEnd;
}

void Spring::setXEnd(Vector3D _x){
	this->xEnd = _x;
}

double Spring::getK(){
	return this->k;
}

void Spring::setK(double _k){
	this->k = _k;
}
